package com.yunao.service;

import com.yunao.entity.AloneReport;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface AlonereportService {
    List<AloneReport> findByUseridAndNeedReport(Integer userid, String needReport);

    AloneReport findById(Integer aid);

    void insertAloneReport(AloneReport aloneReport);

    void updateOne(AloneReport aloneReport);

    String countByUserIdAndName(Integer userid, String name);

    List<AloneReport> findByUseridAndNeedReport(Integer userid, String needReport, Pageable pageable);

    List<AloneReport> findAllByUserId(Integer userid, Pageable pageable);

    void delete(Integer id);

    List<AloneReport> findByNeed(String need);

    List<AloneReport> findByNeedAndId(String need, Integer id);

}
